package com.qwz.learn;
/**
* @Description: 适配器
* @Package com.qwz.learn.Adapter
* @author Qiuwuzhi
* @date 2019/12/17 13:39
* @version V1.0
*/
public class Adapter implements Target{
    private Adaptee adaptee;

    /**
     * 构造方法，传入需要被适配的对象
     * @param adaptee
     */
    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    public void request() {
        //可能转调用的方法，需要适配
        adaptee.specificRequest();
    }
}
